package com.etc.demo1.demo.service.impl;

import com.etc.demo1.demo.domain.Order;
import com.etc.demo1.demo.mapper.OrderMapper;
import com.etc.demo1.demo.service.OrderService;

import java.util.List;

public class OrderServiceImpl implements OrderService {

    private OrderMapper orderMapper;

    @Override
    public List<Order> findAll() {
        return orderMapper.findAll();
    }

    @Override
    public int save(Order order) {
        return orderMapper.save(order);
    }

    @Override
    public Integer delete(int id) {
        return orderMapper.delete(id);
    }

    @Override
    public Order getOrderById(int id) {
        return orderMapper.getById(id);
    }

    @Override
    public int update(Order order) {
        return orderMapper.update(order);
    }
}
